
//
// Enum: LogicOperator
// Copyright 2006 by Ewout Stortenbeker
// Email: 4ewout@gmail.com
//
// This enum is part of the CodeEngine Framework.
// You can download the framework DLL at http://www.code-engine.com/
//
 
    /// <summary>
    /// Represents logic operators for chaining WHERE and HAVING clauses together in a statement
    /// </summary>
    public enum eQLogicOperator
    {
        And,
        Or
    }
    public class LogicOperator
    {
        public static string ToString(eQLogicOperator logicalOperator)
        {
            string output = "";
            switch (logicalOperator)
            {
                case eQLogicOperator.And:
                    output = " and "; break;
                case eQLogicOperator.Or:
                    output = " or "; break;                
            }
            return output;
        }
    }
 
